home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / castools.zip / PBERROR.H < prev    next >
Text File  |  1990-02-09  |  4KB  |  46 lines

  1. /* PBERROR.H  Header file for CAS Toolkit Phonebook Error Codes.
  2.  
  3.    This file must be included in the source files of any application that uses
  4.    the CAS Toolkit Phonebook library.
  5. ==============================================================================*/
  6. /*
  7.     ERROR MESSAGE LIST for Phonebook functions.  This list is indexed
  8.     by the global variable Pberrno.
  9. */
  10. char *PBerrlist[] = {
  11.  
  12.   /* Phonebook errors */
  13.   "",                                                                      /* 0 NULL               */
  14.   "Error using fseek",                                                     /* 1 FSEEKERROR         */
  15.   "Insufficient memory",                                                   /* 2 OUTOFMEM        */
  16.   "Error opening file",                                                    /* 3 CANTOPEN       */
  17.   "Error writing to file",                                                 /* 4 CANTWRITE      */
  18.   "Error reading file",                                                    /* 5 CANTREAD       */
  19.   "Error closing file",                                                    /* 6 CANTCLOSE      */
  20.   "Structure freed pointed to another structure",                          /* 7 ORPHANWARN      */
  21.   "An ASCIIZ string is longer than allowed",                               /* 8 TOOLONGSTRING      */
  22.   "A file by the given path and name already exists",                      /* 9 FILEALREADYEXISTS  */
  23.   "No file by the given name exists",                                      /* 10 FILEDOESNTEXIST   */
  24.   "Not enough diskspace is available for requested operation",             /* 11 OUTOFDISKSPACE    */
  25.   "The phonebook header contains inconsistent information",                /* 12 INCONSISTENTPBH   */
  26.   "The offset at the given record id is NULL",                             /* 13 NOENTRYPRESENT    */
  27.   "No entry was found to match the given name",                            /* 14 NOENTRYFOUND      */
  28.   "No more entries match the given name specification",                    /* 15 NOMOREMATCH       */
  29.   "Cannot add an entry because the phonebook is full",                     /* 16 PHONEBOOKFULL     */
  30.   "Cannot add an entry because entry is invalid",                          /* 17 INVALIDENTRY      */
  31.   "Cannot add an entry because an existing entry has same name",           /* 18 DUPLICATEENTRY    */
  32.   "Error using filelength(): file handle may be invalid",                  /* 19 FILELENGTHERROR   */
  33.   "A proposed change to an entry is invalid",                              /* 20 INVALIDCHANGE     */
  34.   "",                                                                      /* 21 GROUPNOTEMPTY (not used)*/
  35.   "The phonebook's unused bytes exceeded limit: use PbGarbageCollect",     /* 22 TOOMANYFREEBYTES  */
  36.   "A group cannot be a member",                                            /* 23 GROUPCANTBEMEMBER */
  37.   "A person cannot have a member",                                         /* 24 PERSONCANTHAVEMEMBER */
  38.   "The entry to add to the group is already a member of that group",       /* 25 ENTRYALREADYMEMBER*/
  39.   "The entry to remove from the group is not a member of that group",      /* 26 GROUPDOESNTHAVEMEMBER */
  40.   "The entry doesn't have the group in it's membership list",              /* 27 MEMBERDOESNTHAVEGROUP */
  41.   "One or more of the parameters to the function was invalid",             /* 28 INVALIDPARAMETER  */
  42.   "Cannot add a person entry with memberships: use PbAddToGroup",          /* 29 PERSONNOTEMPTY    */
  43.   "A null value was encountered where a valid pointer was expected",       /* 30 NULLPOINTER       */
  44.   "Invalid Pberrno"                                                        /* 31 LASTMESSAGE       */
  45.   };
  46.